package com.rybbaby.tss.tasks.core.task;

import com.rybbaby.tss.tasks.core.annotation.TaskClass;
import com.rybbaby.tss.tasks.core.annotation.TaskMethod;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@TaskClass(remark = "邮件任务调度")
public class MailTask extends BaseTask {
	
	/*@Scheduled(cron = "01 00 00 * * ?")*/
	@TaskMethod(remark = "发送邮件")
	public void sendSms() {
		log("开始发送邮件...");
		// TODO ...
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		log("发送邮件完成!");
	}
}
